package com.jmcba.init;

/**
 * 裸车价
 */
public class CostRaw {
    /**
     * @var 建议售价
     */
    private int priceRecommended;

    /**
     * 折扣
     */
    private float priceRate;

    /**
     * 扣减
     */
    private int priceReduced;

    private int price;

    public CostRaw(int priceRecommended, float priceRate, int priceReduced) {
        this.priceRecommended = priceRecommended;
        this.priceRate = priceRate;
        this.priceReduced = priceReduced;

        this.price = (int) (this.priceRecommended * this.priceRate - this.priceReduced);
    }

    public int getPrice() {
        return price;
    }
}
